package com.ktgj.train.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 子订单对象 train_orderitem
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
public class TrainOrderitem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键编号 */
    private Long orderitemid;

    /** 关联主表编号 */
    @Excel(name = "关联主表编号")
    private Long orderid;

    /** 子订单号 */
    @Excel(name = "子订单号")
    private String orderitemnumber;

    /** 乘客姓名 */
    @Excel(name = "乘客姓名")
    private String guestname;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idnumber;

    /** 佣金 */
    @Excel(name = "佣金")
    private BigDecimal commission;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 操作人id */
    @Excel(name = "操作人id")
    private Long opemployeeid;

    /** 操作人姓名 */
    @Excel(name = "操作人姓名")
    private String opemployeename;

    /** 出生日期（yyyy-MM-dd） */
    @Excel(name = "出生日期", readConverterExp = "y=yyy-MM-dd")
    private Date birthday;

    /** 票号 */
    @Excel(name = "票号")
    private String ticketnumber;

    /** 证件类型 1、一代身份证、2、二代身份证、3、港澳通行证、4、台湾通行证、5、护照 */
    @Excel(name = "证件类型 1、一代身份证、2、二代身份证、3、港澳通行证、4、台湾通行证、5、护照")
    private String idtype;

    /** 车票类型 1成人票 0儿童票 */
    @Excel(name = "车票类型 1成人票 0儿童票")
    private Long tickettype;

    /** 车厢号 */
    @Excel(name = "车厢号")
    private String trainbox;

    /** 座位号 */
    @Excel(name = "座位号")
    private String seatno;

    /** 请款状态 0.初始 1.已请款 */
    @Excel(name = "请款状态 0.初始 1.已请款")
    private Long requestmoneystatus;

    /** $column.columnComment */
    @Excel(name = "请款状态 0.初始 1.已请款")
    private String memo;

    /** 支付单票的金额，出票成功后回填 */
    @Excel(name = "支付单票的金额，出票成功后回填")
    private BigDecimal payamount;

    /** 单票退款金额，退票成功后回填 */
    @Excel(name = "单票退款金额，退票成功后回填")
    private BigDecimal refundamount;

    /** 退款时间，退款成功后回填 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间，退款成功后回填", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundtime;

    /** 实际退款时间，退款成功后回填 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际退款时间，退款成功后回填", width = 30, dateFormat = "yyyy-MM-dd")
    private Date realrefundtime;

    /** 坐席类型 */
    @Excel(name = "坐席类型")
    private String seattype;

    /** 子订单唯一编号 */
    @Excel(name = "子订单唯一编号")
    private String orderitemguid;

    /** 证件有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证件有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date idvaliddate;

    /** 性别 1男 2女 */
    @Excel(name = "性别 1男 2女")
    private Long sex;

    /** 国家编码 */
    @Excel(name = "国家编码")
    private String countrycode;

    /** 保险id */
    @Excel(name = "保险id")
    private Long insuranceid;

    /** 保险金额 */
    @Excel(name = "保险金额")
    private BigDecimal insuranceamount;

    /** 开保结果描述 */
    @Excel(name = "开保结果描述")
    private String insurancememo;

    /** 开保时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开保时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insurancetime;

    /** 是否静音车厢 */
    @Excel(name = "是否静音车厢")
    private String isQuietCoach;

    public void setOrderitemid(Long orderitemid) 
    {
        this.orderitemid = orderitemid;
    }

    public Long getOrderitemid() 
    {
        return orderitemid;
    }
    public void setOrderid(Long orderid) 
    {
        this.orderid = orderid;
    }

    public Long getOrderid() 
    {
        return orderid;
    }
    public void setOrderitemnumber(String orderitemnumber) 
    {
        this.orderitemnumber = orderitemnumber;
    }

    public String getOrderitemnumber() 
    {
        return orderitemnumber;
    }
    public void setGuestname(String guestname) 
    {
        this.guestname = guestname;
    }

    public String getGuestname() 
    {
        return guestname;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setIdnumber(String idnumber) 
    {
        this.idnumber = idnumber;
    }

    public String getIdnumber() 
    {
        return idnumber;
    }
    public void setCommission(BigDecimal commission) 
    {
        this.commission = commission;
    }

    public BigDecimal getCommission() 
    {
        return commission;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setOpemployeeid(Long opemployeeid) 
    {
        this.opemployeeid = opemployeeid;
    }

    public Long getOpemployeeid() 
    {
        return opemployeeid;
    }
    public void setOpemployeename(String opemployeename) 
    {
        this.opemployeename = opemployeename;
    }

    public String getOpemployeename() 
    {
        return opemployeename;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setTicketnumber(String ticketnumber) 
    {
        this.ticketnumber = ticketnumber;
    }

    public String getTicketnumber() 
    {
        return ticketnumber;
    }
    public void setIdtype(String idtype)
    {
        this.idtype = idtype;
    }

    public String getIdtype()
    {
        return idtype;
    }
    public void setTickettype(Long tickettype) 
    {
        this.tickettype = tickettype;
    }

    public Long getTickettype() 
    {
        return tickettype;
    }
    public void setTrainbox(String trainbox) 
    {
        this.trainbox = trainbox;
    }

    public String getTrainbox() 
    {
        return trainbox;
    }
    public void setSeatno(String seatno) 
    {
        this.seatno = seatno;
    }

    public String getSeatno() 
    {
        return seatno;
    }
    public void setRequestmoneystatus(Long requestmoneystatus) 
    {
        this.requestmoneystatus = requestmoneystatus;
    }

    public Long getRequestmoneystatus() 
    {
        return requestmoneystatus;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setPayamount(BigDecimal payamount) 
    {
        this.payamount = payamount;
    }

    public BigDecimal getPayamount() 
    {
        return payamount;
    }
    public void setRefundamount(BigDecimal refundamount) 
    {
        this.refundamount = refundamount;
    }

    public BigDecimal getRefundamount() 
    {
        return refundamount;
    }
    public void setRefundtime(Date refundtime) 
    {
        this.refundtime = refundtime;
    }

    public Date getRefundtime() 
    {
        return refundtime;
    }
    public void setRealrefundtime(Date realrefundtime) 
    {
        this.realrefundtime = realrefundtime;
    }

    public Date getRealrefundtime() 
    {
        return realrefundtime;
    }
    public void setSeattype(String seattype)
    {
        this.seattype = seattype;
    }

    public String getSeattype()
    {
        return seattype;
    }
    public void setOrderitemguid(String orderitemguid) 
    {
        this.orderitemguid = orderitemguid;
    }

    public String getOrderitemguid() 
    {
        return orderitemguid;
    }
    public void setIdvaliddate(Date idvaliddate) 
    {
        this.idvaliddate = idvaliddate;
    }

    public Date getIdvaliddate() 
    {
        return idvaliddate;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setCountrycode(String countrycode) 
    {
        this.countrycode = countrycode;
    }

    public String getCountrycode() 
    {
        return countrycode;
    }
    public void setInsuranceid(Long insuranceid) 
    {
        this.insuranceid = insuranceid;
    }

    public Long getInsuranceid() 
    {
        return insuranceid;
    }
    public void setInsuranceamount(BigDecimal insuranceamount) 
    {
        this.insuranceamount = insuranceamount;
    }

    public BigDecimal getInsuranceamount() 
    {
        return insuranceamount;
    }
    public void setInsurancememo(String insurancememo) 
    {
        this.insurancememo = insurancememo;
    }

    public String getInsurancememo() 
    {
        return insurancememo;
    }
    public void setInsurancetime(Date insurancetime) 
    {
        this.insurancetime = insurancetime;
    }

    public Date getInsurancetime() 
    {
        return insurancetime;
    }

    public String getIsQuietCoach() {
        return isQuietCoach;
    }

    public void setIsQuietCoach(String isQuietCoach) {
        this.isQuietCoach = isQuietCoach;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderitemid", getOrderitemid())
            .append("orderid", getOrderid())
            .append("orderitemnumber", getOrderitemnumber())
            .append("guestname", getGuestname())
            .append("mobile", getMobile())
            .append("idnumber", getIdnumber())
            .append("commission", getCommission())
            .append("status", getStatus())
            .append("opemployeeid", getOpemployeeid())
            .append("opemployeename", getOpemployeename())
            .append("birthday", getBirthday())
            .append("ticketnumber", getTicketnumber())
            .append("idtype", getIdtype())
            .append("tickettype", getTickettype())
            .append("trainbox", getTrainbox())
            .append("seatno", getSeatno())
            .append("requestmoneystatus", getRequestmoneystatus())
            .append("memo", getMemo())
            .append("payamount", getPayamount())
            .append("refundamount", getRefundamount())
            .append("refundtime", getRefundtime())
            .append("realrefundtime", getRealrefundtime())
            .append("seattype", getSeattype())
            .append("orderitemguid", getOrderitemguid())
            .append("idvaliddate", getIdvaliddate())
            .append("sex", getSex())
            .append("countrycode", getCountrycode())
            .append("insuranceid", getInsuranceid())
            .append("insuranceamount", getInsuranceamount())
            .append("insurancememo", getInsurancememo())
            .append("insurancetime", getInsurancetime())
            .append("isQuietCoach", getIsQuietCoach())
            .toString();
    }
}
